package two.javaNow;


public class WeatherStation {
    public static void main(String[] args) {
        WeatherData w = new WeatherData();//气象局
        /**
         * 将布告板注册到气象局，如果气象局调用了set方法，就把更新的数据发送到布告板
         */
        CurrentConditionsDisplay cu = new CurrentConditionsDisplay(w);//布告板
        w.setJavaMeasurements(80, 65, 30.4f);
        w.setJavaMeasurements(82, 70, 29.2f);
        w.setJavaMeasurements(78, 90, 29.2f);
    }
}
